﻿<%@ Control Language="C#" ClassName="AuthorsFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataRefId" runat="server" Text="Ref Id:" AssociatedControlID="dataRefId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataRefId" Text='<%# Bind("RefId") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataRefId" runat="server" Display="Dynamic" ControlToValidate="dataRefId" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCountryId" runat="server" Text="Country Id:" AssociatedControlID="dataCountryId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCountryId" Text='<%# Bind("CountryId") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataCountryId" runat="server" Display="Dynamic" ControlToValidate="dataCountryId" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorName" runat="server" Text="Author Name:" AssociatedControlID="dataAuthorName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorName" Text='<%# Bind("AuthorName") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAuthorName" runat="server" Display="Dynamic" ControlToValidate="dataAuthorName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorFirstName" runat="server" Text="Author First Name:" AssociatedControlID="dataAuthorFirstName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorFirstName" Text='<%# Bind("AuthorFirstName") %>' MaxLength="100"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorLastName" runat="server" Text="Author Last Name:" AssociatedControlID="dataAuthorLastName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorLastName" Text='<%# Bind("AuthorLastName") %>' MaxLength="100"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorBirthday" runat="server" Text="Author Birthday:" AssociatedControlID="dataAuthorBirthday" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorBirthday" Text='<%# Bind("AuthorBirthday", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataAuthorBirthday" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorType" runat="server" Text="Author Type:" AssociatedControlID="dataAuthorType" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorType" Text='<%# Bind("AuthorType") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorDied" runat="server" Text="Author Died:" AssociatedControlID="dataAuthorDied" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorDied" Text='<%# Bind("AuthorDied", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataAuthorDied" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAuthorLinkName" runat="server" Text="Author Link Name:" AssociatedControlID="dataAuthorLinkName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAuthorLinkName" Text='<%# Bind("AuthorLinkName") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


